/* 3-3-01-list.css */
* {
    margin: 0;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

#contain {
    margin: 50px auto;
    padding: 20px;
    width: 400px;
    border: 1px solid #ccc;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: left;
    margin-bottom: 20px;
}
#toubu{
    background-color: orange;
}

.item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.item span {
    margin-right: 10px;
    font-weight: bold;
}

.item input {
    flex-grow: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.item input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.item button {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 5px;
}

.item button:hover {
    background-color: #0056b3;
}

#content {
    background-color: #f9f9f9;
    padding: 10px;
    border-radius: 4px;
}

li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

li:last-child {
    border-bottom: none;
}

li span:first-child {
    margin-right: 10px;
    font-weight: bold;
}

li span:nth-child(2) {
    flex-grow: 1;
}

#btn-right {
    display: flex;
    gap: 5px;
    align-items: center;
}

#btn-right button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    background-color: blue;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

#btn-right button:hover {
    background-color: blue;
}

#btn-right button:nth-child(2) {
    background-color: blue;
}

#btn-right button:nth-child(2):hover {
    background-color: blue;
}

#btn-right button:nth-child(3) {
    background-color: red;
}

#btn-right button:nth-child(3):hover {
    background-color: red;
}

#btn-right button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Transition styles */
.list-move, /* apply transition to moving elements */
.list-enter-active,
.list-leave-active {
    transition: all 1s ease;
}

.list-enter-from{
    transform: translateX(30px);
}
.list-leave-to {
    opacity: 0;
    transform: translateX(30px);
}

.list-leave-active {
    position: absolute;
}